﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using automobili_data;
using automobili_data.interfaces;

namespace automobili_gui.Admin
{
    public partial class PregledPrivilegija : System.Web.UI.Page
    {
       
        protected void Page_Load (object sender, EventArgs e)
        {
            User k = SessionUtils.getCurrentUser();
        Privilegije p = SessionUtils.getCurrentPrivileges();
            if (p.Privilegije_a == 1)
            {
                IList<Privilegije> privilegije = AutomobiliDataManager.instance.dohvatiPrivilegije();
                GridView1.DataSource = privilegije;
                GridView1.DataBind();
            }
        }
    }
}